

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        System.out.println("-----------------");
        printHelloWorld();
        System.out.println("-----------------");
        System.out.println(add(1, 2));

    }



    // 打印三行helloworld
    public static void printHelloWorld() {
        System.out.println("Hello world!");
        System.out.println("Hello world!");
        System.out.println("Hello world!");
    }
    // 求任意两个整数的和
    public static int add(int a, int b) {
        return a + b;
    }


}




















